<?php 
class ControllerHome extends Controller {
	function index() {
		$config   =& $this->locator->get('config');
		$language =& $this->locator->get('language');
		$module   =& $this->locator->get('module');
		$response =& $this->locator->get('response');
		$template =& $this->locator->get('template');
		$url      =& $this->locator->get('url');

		$language->load('controller/home.php');

		$template->set('title', $language->get('title', $config->get('config_store')));

		$view = $this->locator->create('template');

		$view->set('tpl', $template);

		$view->set($module->fetch());
 
		$template->set('content', $view->fetch('content/home.tpl'));

		$template->set($module->fetch());

		$response->set($template->fetch('layout.tpl'));
	}
}
?>
